//
// Created by mgr on 2019/1/3.
//

#include <UIlib.h>
#include <clicore.h>
#include "base/CRuisBaseWindow.h"
#include "CMain1FrameWnd.h"

#ifndef YDTMONOCLIENT_CRUISMAINFRAMWND_H
#define YDTMONOCLIENT_CRUISMAINFRAMWND_H

namespace cliMain {
    using namespace DuiLib;
    using namespace cliCore;

    class CRuisMainFramWnd : public CRuisBaseWindow {
    public:
        CRuisMainFramWnd();
        ~CRuisMainFramWnd();

    public:
        void Init();
        void InitWindow();
        void Notify(TNotifyUI& msg);
        LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
        LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);

    private:
        void TabOnSelected(int ind);

    private:
        int TM_TICKER = 1;

        CButtonUI*btnClose;
        CButtonUI*btnMax;
        CButtonUI*btnRestore;
        CButtonUI*btnMin;

        CTabLayoutUI* pTabLayout;
        CHorizontalLayoutUI* pTabLayout_tab0;
//        ydtWebBrowserUI* pHomeWeb;
//        ydtWebHandler*mWebHandler;
        //IWebBrowser2* pHomeIWeb;
        //CWkeWebkitUI	*pWebkit;

        CMain1FrameWnd*wnd_tab1;
    };
}

#endif //YDTMONOCLIENT_CRUISMAINFRAMWND_H
